package com.notetool.datafetching;

import com.notetool.dataprovider.NoteDataProvider;
import com.notetool.model.NoteSet;

public class IdQueryNode extends SimpleQueryNode
{
    
    ////////////////////
    // Members
    private String id;

    ////////////////////
    // Constructors
    public IdQueryNode (String idVal) throws QueryInitException
    {
        id = idVal;
    }
    
    ////////////////////
    // QueryNode implementation
    public NoteSet getNotes (IQueryMonitor monitor) throws QueryExecException, QueryStoppedException
    {
        NoteDataProvider provider = NoteDataProvider.getDataProvider ();
        return provider.getNotesFromId (id);
    }
    
}
